import request from '@/utils/request'

// 显示商品收藏详情
export const getProductCollectionInfo = params => {
  return request({
      method: 'GET',
      url: '/member/productCollection/detail',
      params
  })
}

// 添加商品收藏
export const addProductCollection = data => {
  return request({
      method: 'POST',
      url: '/member/productCollection/add',
      data
  })
}

// 清空当前用户商品收藏列表
export const clearProductCollection = () => {
  return request({
      method: 'POST',
      url: '/member/productCollection/clear',
  })
}

// 删除商品收藏
export const deleteProductCollection = params => {
  return request({
      method: 'POST',
      url: '/member/productCollection/delete',
      params
  })
}

// 显示当前用户商品收藏列表
export const getProductCollectionList = params => {
  return request({
      method: 'GET',
      url: '/member/productCollection/list',
      params
  })
}